<pe:mcml>
	<script refresh="true" type="text/npl" src="CheckSkin.lua">
<![CDATA[
local CheckSkin = NPL.load("(gl)Mod/GeneralGameServerMod/UI/Vue/Page/User/CheckSkin.lua");
local baseTexURL = "Texture/Aries/Creator/keepwork/CourseSelect/";

CheckSkin.OnInit();

function ClosePage()
	Page:CloseWindow(0);
end

function GetDS() 
	return CheckSkin.DS.items;
end

function GetTotalPrice() 
	return CheckSkin.DS.totalPrice;
end

function purchase()
	CheckSkin.Purchase();
end;

function ShowVip()
	CheckSkin.ShowVip()
end;

function Cancel()
	CheckSkin.Close()
end;

function ClosePage()
	CheckSkin.ClosePage()
end;

function DeleteSelf(index)
	CheckSkin.DeleteSelf(tonumber(index))
end
]]>
	</script>

	<kp:window 
		name="IframeCourse" 
		width="768" 
		height="470" 
		onclose="ClosePage"
		mode="lite"
	>
		<pe:gridview 
			style="margin-top:45px;margin-left:10px;width:936px;height:360px;float:left" 
			RememberScrollPos="true" 
			name="item_gridview" 
			CellPadding="6" 
			VerticalScrollBarStep="36" 
			VerticalScrollBarOffsetX="-1" 
			AllowPaging="false" 
			ItemsPerLine="1" 
			DefaultNodeHeight ="35" 
			DataSource='<%=GetDS()%>'
		>
			<Columns>
				<!-- item -->
				<div style="width: 956px;">
					<!-- item_img -->
					<div 
						style="margin-bottom:10px; width: 734px; height: 50px; background: url(Texture\Aries\Creator\keepwork\CheckSkin\1_734X50_32bits.png#0 0 734 50);"
					>
						<div style="float: left; margin-top:6px; margin-left:8px; width: 38px; height: 38px;background: url(Texture\Aries\Creator\keepwork\CheckSkin\wupingdi_32X32_32bits.png#0 0 32 32: 10 10 10 10);">
							<div tooltip="<%= Eval('name') %>" style="<%= format('margin-left:2px;  margin-top:2px; width: 34; height: 34; background: url(%s#0 0 64 64);', Eval('icon')) %>" />
						</div>
						<!-- bar_container -->
						<div style="float: left; width: 680px; margin-left:6px; height: 90px;">
							<pe:if condition='<%= Eval("type") == "2" %>'>
								<!-- top -->
								<!-- <div style="width: 600px;height: 45px;">
									<div style="base-font-size: 20px; font-size: 20px; color: #666666; margin-top:15px;margin-left:10px;float: left; width: 150px;height: 25px;">
										<%= Eval('name') %>
									</div>
									<div style="base-font-size: 20px; font-size: 20px; color: #666666; margin-top:15px;margin-left:330px;float: left; width: 100px;height: 25px;">
										<%= Eval('remainingdays') %>/10天
									</div>
								</div> -->

								<!-- process -->
								<!-- tooltip='<%= Eval("remainingdays") .. "/10天" %>' -->
								<div style="position: relative;width: 503px;height: 32px; margin-top: 11px;background: url(Texture\Aries\Creator\keepwork\CheckSkin\jingdutiao3_128X38_32bits.png#0 0 106 32: 55 14 40 11);">
									<pe:progressbar 
										name="progress" Minimum = "0" Maximum = "10" Value = "<%= Eval('remainingdays') %>" Step = "1"
										style="width: 455px; height: 20px;margin-left: 42px; margin-top: 4px;"
										blockimage="Texture\Aries\Creator\keepwork\CheckSkin\jingdutiao_32X22_32bits.png#0 0 64 22: 15 10 15 10"
										background=""
									/>
								</div>

								<div style="float: left; base-font-size: 11px; font-size: 11px; color: #666666; margin-top:16px;margin-left:12px;float: left; width: 100px;height: 25px;">
									<%= Eval('remainingdays') %>/10
								</div>

								<!-- bean -->
								<div style="float: left; width: 150px; margin-left:410px; height: 90px;">
									<div style="float: left;width: 40px; margin-top: 12px; margin-left: 5px; font-size: 20px; base-font-size: 20px; color: #666666;text-align:right">
										<%= Eval('price') %>
									</div>
									<img 
										style="float: left; margin-top: 13px; margin-left: 7px; width: 30px; height: 27px; background: url(Texture\Aries\Creator\keepwork\CheckSkin\wuping_douzi_36X33_32bits.png#0 0 36 33);" src="" alt="" 
									/>

									<input
										onclick="DeleteSelf" 
										name="<%= Eval('index') %>"
										type="button" style="float: left; width: 38px; height: 38px; margin-top: 7px; margin-left: 30px;background: url(Texture\Aries\Creator\keepwork\CheckSkin\X_38X38_32bits.png#0 0 38 38);">
									</input>
								</div>
							</pe:if>
							
							<pe:if condition='<%= Eval("type") ~= "2" %>'>
								<pe:if condition='<%= Eval("is_vip_use")%>'>
									<img style="margin-left: 545px; margin-top: 18px;background: url(Texture\Aries\Creator\keepwork\CheckSkin\V_66x16_32bits.png#0 0 66 16); width:66px; height:16px" />
									<input
										onclick="DeleteSelf" 
										name="<%= Eval('index') %>"
										type="button" style="float: left; width: 38px; height: 38px; margin-top: 7px; margin-left: 23px;background: url(Texture\Aries\Creator\keepwork\CheckSkin\X_38X38_32bits.png#0 0 38 38);">
									</input>
								</pe:if>

								<pe:if condition='<%=not Eval("is_vip_use")%>'>
									<div style="base-font-size: 20px; font-size: 20px; color: #666666; margin-top:12px;margin-left:10px;">
										<!-- <%= Eval('name') %> -->
										永久
									</div>
								</pe:if>

							</pe:if>
						</div>
					</div>
				</div>
			</Columns>
		</pe:gridview>

		<!-- bottom -->
		<div style="width: 956px; height: 100px;">
			<div style="float: left;margin-left: 25px;margin-top: 16px; color: #000000;base-font-size:20px;font-size: 20px;">总计:</div>
			<!-- <div style="float: left; width: 90px; height: 40px; margin-top: 10px; margin-left: 10px;">
				<input 
					onclick=""
					type="button"
					style="position: relative; color: #1f1f1f; font-size: 18px; background: url(Texture\Aries\Creator\keepwork\CheckSkin\btn1_32X48_32bits.png#0 0 32 48: 10 10 10 10); width: 90px; height: 40px;" 
				/>
				<div onclick="" style="float: left;width: 44px; color: #ffffff; base-font-size: 18px; font-size: 18px; margin-top: 8px; margin-left: 0px;text-align: right;">
					<%= GetTotalPrice() %>
				</div>
				<img onclick="" style="margin-left: 5px; margin-top: 8px;background: url(Texture\Aries\Creator\keepwork\CheckSkin\douzi_32X32_32bits.png#0 0 32 32); width:32px; height:32px" />
			</div> -->
			<div style="float: left;margin-left:10px;margin-top:20px;color:#000000;height: 40px;">
				<div style="float:left;width:30px;height:15px;" >
					<kp:item gsid="998" style="margin-left:-20px;margin-top:-5px;width:64px;height:32px;"/>
				</div>
				<div style="float:left;margin-left:5px;color:#000000;margin-top: 2px;width: 40px;"><%= GetTotalPrice() %></div>
			</div>

			<div style="float: left;margin-left: 30px;margin-top: 16px; color: #000000;base-font-size:20px;font-size: 20px;">剩余:</div>

			<div style="float: left;margin-left:10px;margin-top:20px;color:#000000;height: 40px;">
				<div style="float:left;width:30px;height:15px;" >
					<kp:item gsid="998" style="margin-left:-20px;margin-top:-5px;width:64px;height:32px;"/>
				</div>
				<pe:label name="bean_label" style="float:left;margin-left:5px;color:#000000;margin-top: 2px;width: 40px;" value='0'></pe:label>
				<!-- <div name="bean_label" style="float:left;margin-left:2px;color:#000000;"><%=GetExchangeP  -->
			</div>

			<input
				onclick="ShowVip" 
				type="button" style="float: left; background: url(Texture\Aries\Creator\keepwork\CheckSkin\btn4_172X50_32bits.png#0 0 172 50); width: 172; height: 50; margin-top: 3px; margin-left: 15px">
			</input>

			<input 
				onclick="Cancel"
				type="button" value="取消" 
				style="color: #1f1f1f; font-size: 18px; background: url(Texture\Aries\Creator\keepwork\CheckSkin\btn3_32X52_32bits.png#0 0 32 52: 10 10 10 10); width: 89px; height: 42px; margin-top: 12px; margin-left: 30px;" 
			/>

			<input 
				onclick="purchase"
				type="button" value="确定" 
				style="color: #1f1f1f; font-size: 18px; background: url(Texture\Aries\Creator\keepwork\CheckSkin\btn2_32X52_32bits.png#0 0 32 52: 10 10 10 10); width: 89px; height: 42px; margin-top: 12px; margin-left: 15px;" 
			/>
		</div>
	</kp:window >
</pe:mcml>